<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://hanfeizi5237@163.com" prefix="hello"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"  %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<LINK type="text/css" rel="stylesheet" href="<%=request.getContextPath()%>/parts/CSS/main.css" >

<script type='text/javascript'>
//分页 ---------↓
function dostartend(obj){	
	document.all["npage"].name="action"
	document.all["npage"].value="index";
	var ys=1;
	if(obj.title=="尾页") {
		ys=document.all["page"].options.length;
	}
	document.all["leafNumber"].value=ys;
	doSel();
}
function nextPage(){
	document.all["npage"].name="action"
	document.all["npage"].value="nextPage";
	doSel();
}
function previousPage(){
	document.all["npage"].name="action"
	document.all["npage"].value="previousPage";
	doSel();
}
function doindex(){	
	document.all["npage"].name="action"
	document.all["npage"].value="index";
	document.all["leafNumber"].value=document.all["page"].value;
	doSel();
}
function doSel(){	
	document.forms[0].submit();
}
function doOrder(order) {
	if(document.all["order"]){
		if(document.all["taxis"].value==""||document.all["taxis"].value=='asc'){
			document.all["taxis"].value="desc";
		}else{
			document.all["taxis"].value="asc";
		}
		document.all["order"].value=order;
		document.forms[0].submit();
	}
}
//分页 ---------↑

//此处clickcolor只能用win系统颜色代码才能成功,如果用#xxxxxx的代码就不行,还没搞清楚为什么:(
var  clickcolor='#51b2f6';
var  highlightcolor='#c1ebff';
function  changeto(){
	source=event.srcElement;
	if  (source.tagName=="TR"||source.tagName=="TABLE")
	return;
	while(source.tagName!="TD")
	source=source.parentElement;
	source=source.parentElement;
	cs  =  source.children;
	if  (cs[1].style.backgroundColor!=highlightcolor&&source.id!="nc"&&cs[1].style.backgroundColor!=clickcolor)
	for(i=0;i<cs.length;i++){
		cs[i].style.backgroundColor=highlightcolor;
	}
}
function  changeback(){
	if  (event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="nc")
	return
	if  (event.toElement!=source&&cs[1].style.backgroundColor!=clickcolor)
	//source.style.backgroundColor=originalcolor
	for(i=0;i<cs.length;i++){
		cs[i].style.backgroundColor="";
	}
}
var _path = '${pageContext.request.contextPath}';
</script>
<%
    response.setHeader("Pragma", "no-cache");
    response.setHeader("Cache-Control", "no-cache");
    response.setDateHeader("Expires", 0);    
    //Hzsyspersonnel user=(Hzsyspersonnel)request.getSession().getAttribute("admin_user");
    //String userid = String.valueOf(user.getUserid());
    String userid = String.valueOf(session.getAttribute("userid"));
    //String deptid = String.valueOf(user.getDeptid());
    //String personid = String.valueOf(user.getPersonid());
    /** 应用根目录 */                     
    String _c = request.getContextPath();
    
%>
